package cn.lf.android.lawfirm.http.request;

import java.util.HashMap;
import java.util.Map;

import cn.lf.android.lawfirm.AppConfig;
import cn.lf.android.lawfirm.http.manager.EBCallback;
import cn.lf.android.lawfirm.http.manager.MyOkHttpClient;

/**
 * @author zby
 * @version create time：2016-8-12 下午7:05:32 网络请求管理
 */
public class RequestManager {

    public RequestManager() {

    }

//    public void GetDataRequest(String name, EBCallback callback){
//        Map<String, String> params = new HashMap<String, String>();
//        params.put("name", name);
//        new MyOkHttpClient().doPost("http://www.cuijiapeng.com", params, callback);
//    }

    public void quasicommissionedParty(String accessToken,String q, EBCallback callback){
        Map<String, String> params = new HashMap<String, String>();
        params.put("Authorization",accessToken);
        params.put("q",q );
        new MyOkHttpClient().doGet(AppConfig.CUSTOMER, params, callback,"Authorization",accessToken);
    }

}